package com.moleq.models;

import com.moleq.db.DatabaseSchema;

import android.R.integer;

public class SecuritySetting {


//	CREATE TABLE t_security_setting
//	(sc_id integer NOT NULL,
//	sc_user_id integer NOT NULL,
//	sc_func_id integer NOT NULL,
//	PRIMARY KEY (sc_id))
	
	private int sc_id;
	private int sc_user_id;
	private int sc_func_id;
	
	public SecuritySetting(int sc_id, int sc_user_id, int sc_func_id) {
		this.sc_id = sc_id;
		this.sc_user_id = sc_user_id;
		this.sc_func_id = sc_func_id;
	}
	
	public int getSc_id() {
		return sc_id;
	}

	public void setSc_id(int sc_id) {
		this.sc_id = sc_id;
	}

	public int getSc_user_id() {
		return sc_user_id;
	}

	public void setSc_user_id(int sc_user_id) {
		this.sc_user_id = sc_user_id;
	}

	public int getSc_func_id() {
		return sc_func_id;
	}

	public void setSc_func_id(int sc_func_id) {
		this.sc_func_id = sc_func_id;
	}
	
	public String toMGData(String Action){
		
		String Result = Action + "|" + DatabaseSchema.SecuritySetting.SCHEMA_NAME + "|(" + getSc_id() + "," + getSc_user_id()
				+ "," + getSc_func_id()+")";
		return Result;
	}
	
	public String toMGData(String Action,String type){
		
		String Result = Action + "|" + DatabaseSchema.SecuritySetting.SCHEMA_NAME + "|(" + getSc_id() + "," + getSc_user_id()
				+ "," + getSc_func_id()+")"+"|"+type;
		return Result;
	}

	
	
}
